<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Login
 *
 * @method static \Illuminate\Database\Eloquent\Builder|Login newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Login newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Login query()
 * @mixin \Eloquent
 */
class Login extends Model
{
    //关联的数据表
    public $table = 'data_user';

    //2.主键
    public $primaryKey = 'user_id';

    //3.允许批量操作的字段
    public $fillable = ['user_name','user_pass'];
    public $guarded = [];

    //4.是否维护create_at和update_at字段
    public $timestamps = false;


}
